package com.ruoyi.projects.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员积分明细对象 sl_integral_details
 * 
 * @author yangz
 * @date 2024-12-01
 */
public class SlIntegralDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分id */
    private Long id;

    /** 会员id */
    @Excel(name = "会员id")
    private Long customerId;

    private String customerName;

    /** 积分内容 */
    @Excel(name = "积分内容")
    private String sourceText;

    /** 积分额度 */
    @Excel(name = "积分额度")
    private BigDecimal integral;

    /** 积分总收入 */
    @Excel(name = "积分总收入")
    private BigDecimal integralAllIn;

    /** 积分总支出 */
    @Excel(name = "积分总支出")
    private BigDecimal integralAllOut;

    /** 支出收入（0支出，1收入） */
    @Excel(name = "支出收入", readConverterExp = "0=支出，1收入")
    private String inOut;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setSourceText(String sourceText) 
    {
        this.sourceText = sourceText;
    }

    public String getSourceText() 
    {
        return sourceText;
    }
    public void setIntegral(BigDecimal integral) 
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral() 
    {
        return integral;
    }
    public void setIntegralAllIn(BigDecimal integralAllIn) 
    {
        this.integralAllIn = integralAllIn;
    }

    public BigDecimal getIntegralAllIn() 
    {
        return integralAllIn;
    }
    public void setIntegralAllOut(BigDecimal integralAllOut) 
    {
        this.integralAllOut = integralAllOut;
    }

    public BigDecimal getIntegralAllOut() 
    {
        return integralAllOut;
    }
    public void setInOut(String inOut) 
    {
        this.inOut = inOut;
    }

    public String getInOut() 
    {
        return inOut;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("sourceText", getSourceText())
            .append("integral", getIntegral())
            .append("integralAllIn", getIntegralAllIn())
            .append("integralAllOut", getIntegralAllOut())
            .append("inOut", getInOut())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .toString();
    }
}
